package com.coderman;

import com.coderman.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * Created by ${fanchunshuai} on 2017-3-10.
 *
 * @version: V1.0
 * @Desc:
 * @Copyright (c) 2017 58到家-版权所有
 * WebMvcConfigurerAdapter 内嵌tomcat使用
 */
@SpringBootApplication
public class DataCollectWebApplication extends SpringBootServletInitializer {
    /**
     * 启动类
     * @param args
     */
    public static void main(String[] args) {
        SpringApplication.run(DataCollectWebApplication.class, args);
    }

    @Autowired
    private CityService cityService;
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(DataCollectWebApplication.class);
    }
}
